package com.lhkj.ct.meta.admin.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lhkj.ct.meta.admin.model.entity.TblRoleMenu;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 * 角色权限 Mapper 接口
 * </p>
 *
 * @author jobob
 * @since 2023-08-30
 */
public interface SysRoleMenuMapper extends BaseMapper<TblRoleMenu> {

    @Select("select menu_id from tbl_role_menu where role_id = #{roleId,jdbcType=VARCHAR}")
    List<String> menuIds(@Param("roleId") String roleId);
}
